#encoding=utf-8
'''
Created on 2011-11-28

@author: guanyw

python version:2.6
'''
import nltk

if __name__ == '__main__':
#    nltk.corpus.sinica_treebank.parsed_sents()[3450].draw() 

    f = float('9.60698e-017')
    strf = '%.30f'%(f)
    print strf     
    
    outfile=open("Data//ParseResults.txt","w")
    outfile.write("Aaa")
#    grammar = nltk.parse_cfg("""
#        START -> hl 
#        START -> zj 
#        START -> vp 
#        START -> np 
#        START -> dj 
#        START -> wql 
#        START -> wqr 
#        START -> tp 
#        START -> mp 
#        START -> fj 
#        START -> pp 
#        START -> yj 
#        START -> npr 
#        START -> qp 
#        START -> dp 
#        START -> wpl 
#        START -> wpr 
#        START -> ap 
#        START -> sp 
#        ap -> a 
#        ap -> ap wco ap 
#        ap -> ia 
#        ap -> ap ap 
#    """)
#    viterbi_parser = nltk.ViterbiParser(grammar)
#    print viterbi_parser.parse(['Jack', 'saw', 'telescopes'])
#    
#    nltk.pcfg_demo()